package rsj.sql.customer;

import com.rlyy.aibase.utils.base.Node;
import com.rlyy.aibase.utils.base.TableNode;
import rsj.annotation.DynamicSelect;
import rsj.api.report.entity.ReportParam;
import rsj.service.report.dynamic.CustomerReportDynamicStatement;

/**
 * 客户报表
 *
 * @author yuanqinglong
 * @since 2021/7/15 14:46
 */
public interface CustomerReportDao {


    /**
     * 客户报告列表
     *
     * @param reportParam 报告参数
     * @return {@link TableNode}
     */
    @DynamicSelect(type = CustomerReportDynamicStatement.class, method = "customerReportListSql")
    TableNode customerReportList(ReportParam reportParam);


    /**
     * 客户报告数
     *
     * @param reportParam 报告参数
     * @return {@link Node}
     */
    @DynamicSelect(type = CustomerReportDynamicStatement.class, method = "customerReportCountSql")
    Node customerReportCount(ReportParam reportParam);



    /**
     * 导出客户报告列表
     *
     * @param reportParam 报告参数
     * @return {@link TableNode}
     */
    @DynamicSelect(type = CustomerReportDynamicStatement.class, method = "customerReportExportSql")
    TableNode customerReportExportList(ReportParam reportParam);



    /**
     * 导出客户报告详情列表
     *
     * @param reportParam 报告参数
     * @return {@link TableNode}
     */
    @DynamicSelect(type = CustomerReportDynamicStatement.class, method = "customerReportDetailExportSql")
    TableNode customerReportDetailExportList(ReportParam reportParam);



    /**
     * 客户报告详情列表
     *
     * @param reportParam 报告参数
     * @return {@link TableNode}
     */
    @DynamicSelect(type = CustomerReportDynamicStatement.class, method = "customerReportDetailSql")
    TableNode customerReportDetailList(ReportParam reportParam);


    /**
     * 客户报告数
     *
     * @param reportParam 报告参数
     * @return {@link Node}
     */
    @DynamicSelect(type = CustomerReportDynamicStatement.class, method = "customerReportDetailCountSql")
    Node customerReportDetailCount(ReportParam reportParam);

}
